/**
 * 
 */
package reinvent.d.wheel.UM.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author nishant.awasthi
 *
 */
public class BasicUserController {
	
	
	private static final Logger logger = LoggerFactory
	.getLogger(BasicUserController.class);

	/**
	 * 
	 */
	public BasicUserController() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}
	
	@RequestMapping(value = "/user/home", method = RequestMethod.GET)
	public String home(Model model) {
		logger.info("Welcome home!");
		model.addAttribute("controllerMessage",
				"This is the message from the controller!");
		return "user";
	}
	
	@RequestMapping(value = "/user/add", method = RequestMethod.GET)
	public String add(Model model) {
		logger.info("Welcome home!");
		model.addAttribute("controllerMessage",
		"This is the message from the controller!");
		return "user";
	}

}
